package com.cdcas;

import java.util.HashMap;
import java.util.Map;

public class MapUse {
    public static void main(String[] args) {
        Map<Integer,String> map = new HashMap<>();
        map.put(1,"www");
        map.put(1,"777");
        map.put(2,"baidu");
        System.out.println(map);
        System.out.println("获取key为2的value:"+map.get(2));
    }
}
